import * as request from '@/utils/request/request'
const perfix= ''
const api = {
    getWarnTypeRate(params){ // 获取预警类型占比
        return request.post(`${perfix}/getWarnTypeRate`,params)
    },
    getBlackNum(params){ // 获取黑样本数量
        return request.post(`${perfix}/getBlackNum`,params)
    },
    getCaseNum(params){ // 获取成案数量
        return request.post(`${perfix}/getCaseNum`,params)
    },
    getCaseHandlingNum(params){ // 下发反馈-接报警
        return request.post(`${perfix}/getCaseHandlingNum`,params)
    },
    intercept_situaion(params){ // 下发反馈-接报警
        return request.post(`/index/intercept_situaion`,params)
    },
    index_edit(params){ // 下发反馈-接报警
        return request.post(`/list/index_edit`,params)
    },
    //诈骗
    stiuationAwareStatic(params){ // 态势感知统计
        return request.get(`${perfix}/api/fraudStatic/stiuationAwareStatic`,params)
    },
    areaDistributionStatic(params){ // 24小时干预分布
        return request.get(`${perfix}/api/fraudStatic/areaDistributionStatic`,params)
    },
    realTimeEffectStatic(params){ // 干预实时效果
        return request.get(`${perfix}/api/fraudStatic/realTimeEffectStatic`,params)
    },
    hignRiskUserStatic(params){ // 高危用户分析
        return request.get(`${perfix}/api/fraudStatic/hignRiskUserStatic?timeType=3`,params)
    },
    inteveneRankStatic(params){ // 干预的top24Url
        return request.get(`${perfix}/api/fraudStatic/inteveneRankStatic`,params)
    },
    getCode(params){ // 获取验证码
        return request.get(`${perfix}/auth/code`,params)
    },
    login(params){ // 登录授权
        return request.post(`${perfix}/auth/login`,params)
    },
    getPhoneValidCode(params){ // 获取手机登录验证码
        return request.get(`${perfix}/auth/getPhoneValidCode`,params)
    },
    phoneLogin(params){ // 手机登录
        return request.get(`${perfix}/auth/phoneLogin`,params)
    },
    getTable: (url,params) => request.post(url, params),
    // post
    post: (url, params) => request.post(url, params),
    // get
    get: (url, params) => request.get(url, params),

}
export default api
